package com.tencent.mm.opensdk.modelbiz;

import android.os.Bundle;
import android.util.Log;
import com.tencent.mm.opensdk.modelbase.BaseReq;

public final class JumpToBizTempSession {
    public class Req extends BaseReq {
        private static final int MAX_SESSION_FROM_LENGTH = 1024;
        private static final String TAG = "MicroMsg.SDK.JumpToBizTempSession.Req";
        public String sessionFrom;
        public int showType;
        public String toUserName;

        public Req() {

        }

        public boolean checkArgs() {
            boolean v0 = false;
            if(this.toUserName == null || this.toUserName.length() <= 0) {
                Log.e("MicroMsg.SDK.JumpToBizTempSession.Req", "checkArgs fail, toUserName is invalid");
            }
            else {
                if(this.sessionFrom != null && this.sessionFrom.length() <= 1024) {
                    return true;
                }

                Log.e("MicroMsg.SDK.JumpToBizTempSession.Req", "checkArgs fail, sessionFrom is invalid");
            }

            return v0;
        }

        public int getType() {
            return 10;
        }

        public void toBundle(Bundle arg3) {
            super.toBundle(arg3);
            arg3.putString("_wxapi_jump_to_biz_webview_req_to_user_name", this.toUserName);
            arg3.putString("_wxapi_jump_to_biz_webview_req_session_from", this.sessionFrom);
            arg3.putInt("_wxapi_jump_to_biz_webview_req_show_type", this.showType);
        }
    }

    public static final int SHOW_CHAT = 1;
    public static final int SHOW_MENU = 0;

    public JumpToBizTempSession() {

    }
}

